package com.dzsw.config;

import com.dzsw.properties.ItemProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PropertiesConfig {

    @Bean("itemProperties")
    @ConfigurationProperties(prefix="myspcloud.item")
    public ItemProperties itemProperties() {
        return new ItemProperties();
    }
}
